<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>Wireframe</title>
		<link rel="stylesheet" href="<?php echo site_url("/jqueryui/css/ui-lightness/jquery-ui-1.8.18.custom.css"); ?>" type="text/css">
		<link rel="stylesheet" href="<?php echo site_url("/bootstrap/css/bootstrap.css"); ?>" type="text/css">
		<script type="text/javascript" language="javascript" src="<?php echo site_url("/jquery/jquery-1.7.1.min.js"); ?>"></script>
		<script type="text/javascript" language="javascript" src="<?php echo site_url("/jquery/jquery.validate.min.js"); ?>"></script>
		<script type="text/javascript" language="javascript" src="<?php echo site_url("/bootstrap/js/bootstrap.js"); ?>"></script>
		<script type="text/javascript" charset="utf-8">
			$(document).ready(function()
			{
				$("#userProfileForm").validate();
				//$("#state").val(0);
			});
		</script>
	</head>
	<body>
		<?php $this->load->view('v_vendornavbar'); ?>
		<div class="container">
			<div class="row">
				<div class="span12 ui-corner-all">
					<div class="well">
						<h1>Vendor Profile</h1>
						<br/><br/>
						<form name="input" id="userProfileForm" action=<?php echo site_url("vendorprofile/edit_user/"); ?> method="post">
						<label for="name">Name:</label>
						<em>*</em><input type="text" name="name" id="name" class="required" minlength="2" value="<?php echo $name;?>"/>
						<label for="attention">Attention:</label>
						<em>*</em><input type="text" name="attention" id="attention" class="required" minlength="2" value="<?php echo $attention;?>"/>
						<label for="street">Street Address:</label>
						<em>*</em><input type="text" name="street" id="street" class="required" minlength="2" value="<?php echo $street;?>"/>
						<label for="city">City:</label>
						<em>*</em><input type="text" name="city" id="city" value="<?php echo $city;?>"/>
						<label for="state">State: <?php echo $state;?></label>
						<select size="1" name="state" id="state" class="required" >
							<option value="AK">Alaska</option>
							<option value="CA">California</option>
							<option value="NY">New York</option>
							<option value="IL">Illinois</option>
							<option value="TX">Texas</option>
							<option value=0>Select a State</option>
						</select>
						<label for="zipCode">ZIP Code:</label>
						<em>*</em><input type="text" name="zipCode" id="zipCode" class="required" value="<?php echo $zipCode;?>"/>
						<label for="source">API Source:</label>
						<em>*</em><input type="text" name="source" id="source" class="required" minlength="2" value="<?php echo $source;?>"/>
						<label for="website">Website:</label>
						<em>*</em><input type="text" name="website" id="website" class="required" minlength="2" value="<?php echo $website;?>"/>
						<br/><br/>
						<input type="submit" value="Save Changes" />
						<a href="<?php echo site_url('vendorprofile') ?>"><input type='submit' value='Cancel' /></a>
						</form>
						<br/>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>